package br.unirio.dsw.controle.action;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class LogoutAction extends ActionSupport implements SessionAware {


	/**
	 * 
	 */
	private static final long serialVersionUID = -7387036438906742728L;
	
	@SuppressWarnings("rawtypes")
	private Map session;

	public String logout() 
	{
		session.clear();
		return SUCCESS;
	}

	@SuppressWarnings("rawtypes")
	@Override
	public void setSession(Map newSession) {
		session = newSession;

	}
}
